System. Before Zabbix 1.8, you can only use Zapcat to monitor jmx and need to modify the source code to support it, which is cumbersome. Another approach is to use jmx-cmd-client, which is to get jmx information from the command line, and to wrap a program on top of it to get JMX
Due to the use of proxy distributed monitoring, it is necessary to install Java_getway on the proxy side. That is, when compiling, add--enable-java
Modify Zabbix_java related optionsGo to the directory below for seeting.sh script editing; start the./startup.sh to see if Port 10052 is startedlisten_ip = "0.0.0.0" Listen_port = 10052 Pid_file = "/tmp/zabbix_java.pid"start_pollers = 5
Modify the proxy configuration file and the server configuration f
Reference: [JMX monitoring] [Zabbix Java gateway] [JMX monitoring (Java Gateway) not working]
This explains the configuration process for monitoring the Java process through JMX
Monitoring Zabbix using JMX to monitor Tomcat
1. Install the java tool on the zabix server (zabbix has been installed on the server)
[Root @ db02 ~] # Rpm-ivhHttp://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-java-gateway-2.4.
zabbix_agent.confModify the following parameters:unsafeuserparameters=1userparameter=memcachestats[*],/scripts/memcache-tool.pl 127.0.0.1:11211 stats|grep |awk ' {Print $NF} 'Then restart the zabbix_agent processIv. Adding item in ZabbixFor example, add the current "Curr_connections"650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/76/wKioL1UJxG2y5QoLAADMQH1Z48A053.jpg "title=" T.jpg " alt= "Wkiol1ujxg2y5qolaadmqh1z48a053.jpg"/>Save it.*
In general, the log first reflects the application of the current problem, in the mass log found in our abnormal records, and then recorded, and according to the situation alarm, we can monitor the system log, Nginx, Apache, business log. Here I take the common MySQL log to do monitoring, we look at the demo.
Monitor Log key
First to understand Key,log[file,
File: filename, write absolute path
RegExp: A regular expression to match the content, or
JMX (java Management Extensions), a management interface provided by Java, typically uses JMX to monitor the running state of the system or some aspects of the management system, such as emptying the cache, reloading the configuration file, and so on.
Baidu Encyclopedia Introduction: JMX
Zabbix
Zabbix Monitoring Tomcat Scheme1) The version of Zabbix is 2.4You need to add a parameter when compiling Zabbix--enable-java2) server-side configuration2.1 Confirm that the JDK is installed[Email protected] zabbix]# java-versionJava Version "1.7.0_79"Java (TM) SE Runtime Env
step, generate Authentication Tokens
"Jsonrpc": "2.0"-this is the standard JSON RPC parameter to indicate the protocol version. All requests will remain unchanged.
"Method": "User.login"-This parameter defines the action that is actually performed. For example: Host.create, item.update, etc.
"Params"-this is done by passing a JSON object as a parameter to a particular method. If you want to create a
Java-gatewayZabbix itself does not support the direct monitoring of Java, before Zabbix 1.8, can only use Zapcat to do proxy monitoring, and to modify the source code, very cumbersome. All later in order to solve this monitoring problem, Zabbix and Java should be shipped gen
be applied to monitor the fast start of virtual components.CustomThink market data is very professional and requires customized monitoring tools? Zabbix can make you think again. Zabbix's extensive customization capabilities allow data acquisition, environmental control systems or more complex research equipment to be integrated into any environment and financial system. In the use of scripts or programmin
following:(This step has been tested, can not write)-----The port here is consistent with the ZABBIX server-defined monitoring JMX port3. Modify the Tomcat/bin directory under catalina.shFind the #-----Execute the requested Command-----------------------------------------Add the following content:Catalina_opts= "-dcom.sun.management.jmxremote-dcom.sun.management
simple, but very detailed and convenient, that is, JMX.
All users of Hadoop's http Monitoring Ports know that namenode 50070, jobtracker 50030, datanode 50075, and tasktracker 50060. However, when you access these ports, the monitoring page such as dfshealth. jsp or jobtracker. jsp is automatically displayed. Jmx acc
= JdbcconnectionpoolruntimeSee what Attributes are under JdbcconnectionpoolruntimeIv. Configuring Zabbix Item
Configuring a JMX interface
Configure a WebLogic Iteam
JMX Iteam configuration format: Jmx[object_name,attribute_name]Here the object_name is Java-jar jmxcmd.jar-jmx_host:jmx_port query out of
for users to implement monitoring and alarm, the following will be considered as an example of MySQL add monitoring, describes how to add custom monitoring.Experimental environment1.NySQL 192.168.2.6 (Agent)2.Zabbix Server 172.30.1.208Role: Zabbix Agent,
This article takes the CentOS 6.7 x86_64 system as an example, the environment is the new system which just completes.Zabbix-server-End Environmental monitoring[Email protected] ~]# Cat/etc/redhat-releasecentos release 6.7 (Final) [[email protected] ~]# uname-r2.6.32-573.8.1.el6 . X86_64[[email protected] ~]# uname-mx86_64[[email protected] ~]# Hostnamelinux-node1.example.com[[email protected] ~]# Ifconfig
good solution for centralized monitoring of remote locations, branches, and network scenarios. The data that is collected from the monitored device is cached on the proxy locally and passed to the Zabbix server to which it belongs. Proxy requires a separate database.
4.Java Gateway
The Java-implemented daemon is used to monitor JMX-type applications.
5.Sende
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.